{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">编辑分类</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" class="form-horizontal form form-validate" id="form">
			<div class="form-group-title">编辑分类</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">排序</label>
				<div class="col-sm-9">
					<input type="text" name="data[sort]" id="sort" class="form-control" value="{$data['sort']}" />
					<span class="help-block">提示：填写数字</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">分类名称</label>
				<div class="col-sm-9">
					<input type="text" name="data[name]" id="name" class="form-control" value="{$data['name']}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">分类图标</label>
				<div class="col-sm-9">
					{php echo attachment_select('data[img]', $data['img']);}
					<span class="help-block">图片建议为100X100</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">是否首页推荐</label>
				<div class="col-sm-9">
					<label class="radio radio-success radio-inline">
						<input type="radio" name="data[recommend]" value="1" {if intval($data[ 'recommend'])==1 }checked="checked" {/if}>是
					</label>
					<label class="radio radio-success radio-inline">
						<input type="radio" name="data[recommend]" value="0" {if intval($data[ 'recommend'])==0 }checked="checked" {/if}>否
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">是否显示</label>
				<div class="col-sm-9">
					<label class="radio radio-success radio-inline">
						<input type="radio" name="data[status]" value="1" {if intval($data[ 'status'])==1 }checked="checked" {/if}>是
					</label>
					<label class="radio radio-success radio-inline">
						<input type="radio" name="data[status]" value="0" {if intval($data[ 'status'])==0 }checked="checked" {/if}>否
					</label>
					<span class="help-block">提示：分类不显示，其分类下的问题也不显示</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="hidden" name="data[id]" value="{$data['id']}" />
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width"/>
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</from>
	</div>
</div>
{php include wl_template('common/footer');}